import javax.swing.JFrame;
import javax.swing.JLabel;

/**
 * Copyright (c) Jack魏 2024 - 2024, All Rights Reserved.
 */
public class Main extends JFrame {

    /**
     * from https://www.freejavaguide.com/java_swing.html
     */
    private Main() {
        setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        getContentPane().add(new JLabel("Hello, World!"));
        pack();
        setLocationRelativeTo(null);
    }

    /**
     * 程序主入口
     *
     * @param args 运行参数
     */
    public static void main(String[] args) {
        new Main().setVisible(true);
    }
}